<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class application\modules\message\core\co\CoApi | IBOS open source</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?49f43d3208c5d7e33fa16d36107a345bf11cc00d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">IBOS open source</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li>
						<a href="namespace-application.modules.message.core.co.html" title="Summary of application\modules\message\core\co"><span>Namespace</span></a>
					</li>
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
					<li class="active">
						<a href="namespace-application.html">
							application<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.html">
							cache<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.driver.html">
							driver						</a>
							</li>
					<li>
						<a href="namespace-application.core.cache.provider.html">
							provider						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.core.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.html">
							engines<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.engines.local.html">
							local						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.sae.html">
							sae						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.core.modules.html">
							modules						</a>
							</li>
					<li>
						<a href="namespace-application.core.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.core.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li class="active">
						<a href="namespace-application.modules.html">
							modules<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.html">
							article<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.calendar.html">
							calendar<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.calendar.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.contact.html">
							contact<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.contact.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.dashboard.html">
							dashboard<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.dashboard.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.department.html">
							department<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.department.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.diary.html">
							diary<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.diary.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.email.html">
							email<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.email.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.main.html">
							main<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.main.behaviors.html">
							behaviors						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li class="active">
						<a href="namespace-application.modules.message.html">
							message<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.controllers.html">
							controllers						</a>
							</li>
					<li class="active">
						<a href="namespace-application.modules.message.core.html">
							core<span></span>
						</a>
							<ul>
					<li class="active">
						<a href="namespace-application.modules.message.core.co.html">
							co						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.html">
							wx<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.wx.callback.html">
							callback						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.event.html">
							event						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-application.modules.message.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.mobile.html">
							mobile<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.mobile.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.position.html">
							position<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.position.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.recruit.html">
							recruit<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.recruit.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.role.html">
							role<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.role.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.role.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.user.html">
							user<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.user.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.vote.html">
							vote<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.vote.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.weibo.html">
							weibo<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.weibo.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.utils.html">
							utils						</a>
							</li>
								</ul></li></ul></li></ul></li>
			</ul>
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li class="active"><a href="class-application.modules.message.core.co.CoApi.html">CoApi</a></li>
				<li><a href="class-application.modules.message.core.co.CodeApi.html">CodeApi</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Class CoApi</h1>



	<dl class="tree well">
		<dd style="padding-left:0px">
CApplicationComponent
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by">
			<a href="class-application.core.utils.System.html"><span>application\core\utils\System</span></a>
			
			
			
		</dd>
		<dd style="padding-left:60px">
			<img src="resources/inherit.png" alt="Extended by">
			<a href="class-application.core.utils.Api.html"><span>application\core\utils\Api</span></a>
			
			
			
		</dd>
		<dd style="padding-left:90px">
			<img src="resources/inherit.png" alt="Extended by">
<b><span>application\modules\message\core\co\CoApi</span></b>			
			
			
		</dd>
	</dl>








	<div class="alert alert-info">
		
		
		<b>Namespace:</b> <a href="namespace-application.html">application</a>\<a href="namespace-application.modules.html">modules</a>\<a href="namespace-application.modules.message.html">message</a>\<a href="namespace-application.modules.message.core.html">core</a>\<a href="namespace-application.modules.message.core.co.html">co</a><br>
		

				<b>Copyright:</b>
				Copyright &copy; 2015 IBOS Inc<br>
				<b>Author:</b>
				mumu <a href="&#109;&#97;&#105;&#x6c;&#x74;&#x6f;&#58;&#50;&#51;&#x31;&#x37;&#x32;1&#54;&#52;&#x37;&#x37;&#x40;q&#113;&#46;&#99;&#x6f;&#x6d;">&#50;&#51;&#x31;&#x37;&#x32;1&#54;&#52;&#x37;&#x37;&#x40;q&#113;&#46;&#99;&#x6f;&#x6d;</a><br>
			<b>Located at</b> system/modules/message/core/co/CoApi.php		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="setSignParam" id="_setSignParam">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setSignParam">#</a>
			<code>setSignParam( <span> <var>$param</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$param</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="getSignParam" id="_getSignParam">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getSignParam">#</a>
			<code>getSignParam( )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="setSignTypeParam" id="_setSignTypeParam">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setSignTypeParam">#</a>
			<code>setSignTypeParam( <span>string <var>$param</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$param</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="getSignTypeParam" id="_getSignTypeParam">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getSignTypeParam">#</a>
			<code>getSignTypeParam( )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="setAuthKey" id="_setAuthKey">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setAuthKey">#</a>
			<code>setAuthKey( <span>string <var>$key</var></span> )</code>

			<div class="description short">
				<p>设置验证签名用的私钥</p>
			</div>

			<div class="description detailed hidden">
				<p>设置验证签名用的私钥</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$key</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="getAuthKey" id="_getAuthKey">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getAuthKey">#</a>
			<code>getAuthKey( )</code>

			<div class="description short">
				<p>返回私钥</p>
			</div>

			<div class="description detailed hidden">
				<p>返回私钥</p>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="setSignType" id="_setSignType">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setSignType">#</a>
			<code>setSignType( <span>string <var>$type</var></span> )</code>

			<div class="description short">
				<p>设置签名方法</p>
			</div>

			<div class="description detailed hidden">
				<p>设置签名方法</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$type</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="getSignType" id="_getSignType">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getSignType">#</a>
			<code>getSignType( )</code>

			<div class="description short">
				<p>返回签名方法</p>
			</div>

			<div class="description detailed hidden">
				<p>返回签名方法</p>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getInstance" id="_getInstance">

			<td class="attributes"><code>
				 public static
				object
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getInstance">#</a>
			<code>getInstance( <span> <var>$className</var> = __CLASS__ </span> )</code>

			<div class="description short">
				<p>单例化api</p>
			</div>

			<div class="description detailed hidden">
				<p>单例化api</p>



					<h4>Returns</h4>
					<div class="list">
						object
					</div>



					<h4>Overrides</h4>
					<div class="list"><code><a href="class-application.core.utils.Api.html#_getInstance">application\core\utils\Api::getInstance</a></code></div>

			</div>
			</div></td>
		</tr>
		<tr data-order="getCoToken" id="_getCoToken">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getCoToken">#</a>
			<code>getCoToken( <span>string <var>$mobile</var></span>, <span>string <var>$password</var></span> )</code>

			<div class="description short">
				<p>根据酷办公账号密码获取对应accesstoken的信息</p>
			</div>

			<div class="description detailed hidden">
				<p>根据酷办公账号密码获取对应accesstoken的信息</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$mobile</var></dt>
						<dd></dd>
						<dt><var>$password</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getUserInfo" id="_getUserInfo">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getUserInfo">#</a>
			<code>getUserInfo( <span>string <var>$accesstoken</var></span>, <span>string <var>$uid</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>根据accesstoken获取用户的信息</p>
			</div>

			<div class="description detailed hidden">
				<p>根据accesstoken获取用户的信息</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$accesstoken</var></dt>
						<dd></dd>
						<dt><var>$uid</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getCorpByCorpToken" id="_getCorpByCorpToken">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getCorpByCorpToken">#</a>
			<code>getCorpByCorpToken( <span>type <var>$corptoken</var></span> )</code>

			<div class="description short">
				<p>根据corptoken获取corp的信息</p>
			</div>

			<div class="description detailed hidden">
				<p>根据corptoken获取corp的信息</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$corptoken</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="updateCorpByCorpToken" id="_updateCorpByCorpToken">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_updateCorpByCorpToken">#</a>
			<code>updateCorpByCorpToken( <span>type <var>$corptoken</var></span>, <span>type <var>$post</var></span> )</code>

			<div class="description short">
				<p>通过corptoken更新corp信息
支持的参数
"aeskey":"xxx",
"regip":"xxxx",
"logo":"xx",
"name":"xx",
"shortname":"xx",
"area":"xx",
"systemurl":"http://oa.xxx.com",
"sysuser":"admin",
"syspassword":"123456",
"opencloud":0</p>
			</div>

			<div class="description detailed hidden">
				<p>通过corptoken更新corp信息
支持的参数
"aeskey":"xxx",
"regip":"xxxx",
"logo":"xx",
"name":"xx",
"shortname":"xx",
"area":"xx",
"systemurl":"http://oa.xxx.com",
"sysuser":"admin",
"syspassword":"123456",
"opencloud":0</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$corptoken</var></dt>
						<dd></dd>
						<dt><var>$post</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="quitCorpByCorpToken" id="_quitCorpByCorpToken">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_quitCorpByCorpToken">#</a>
			<code>quitCorpByCorpToken( <span>type <var>$corptoken</var></span> )</code>

			<div class="description short">
				<p>根据corptoken退出corp</p>
			</div>

			<div class="description detailed hidden">
				<p>根据corptoken退出corp</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$corptoken</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="createCorpByToken" id="_createCorpByToken">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_createCorpByToken">#</a>
			<code>createCorpByToken( <span>type <var>$accesstoken</var></span>, <span>array <var>$post</var></span> )</code>

			<div class="description short">
				<p>根据accesstoken创建corp
请求参数说明：</p>
			</div>

			<div class="description detailed hidden">
				<p>根据accesstoken创建corp
请求参数说明：</p>

<ul>
<li><code>accesstoken</code>：个人令牌。</li>
<li><code>name</code>：企业名称。</li>
<li><code>code</code>：企业代码</li>
<li><code>createfrom</code>：(可选)用于标识哪个平台创建的</li>
<li><code>regip</code>：(可选)注册IP</li>
<li><code>opencloud</code>:(可选) yes or no 是否开启云端版IBOS</li>
</ul>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$accesstoken</var></dt>
						<dd></dd>
						<dt><var>$post</var></dt>
						<dd>参照上面参数</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="checkMobile" id="_checkMobile">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_checkMobile">#</a>
			<code>checkMobile( <span>type <var>$mobile</var></span> )</code>

			<div class="description short">
				<p>验证手机号是否注册</p>
			</div>

			<div class="description detailed hidden">
				<p>验证手机号是否注册</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$mobile</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="registerUser" id="_registerUser">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_registerUser">#</a>
			<code>registerUser( <span>array <var>$post</var></span>, <span>string <var>$openId</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>注册用户
请求参数说明：
mobile： 用户注册手机号。
email : 用户邮箱
username : 用户名
以上三项不可同时为空。可全部填也可只提供一项。
password：MD5加密用户明文密码后的字符串
openid:（可选）微信登录openid</p>
			</div>

			<div class="description detailed hidden">
				<p>注册用户
请求参数说明：
mobile： 用户注册手机号。
email : 用户邮箱
username : 用户名
以上三项不可同时为空。可全部填也可只提供一项。
password：MD5加密用户明文密码后的字符串
openid:（可选）微信登录openid</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$post</var></dt>
						<dd></dd>
						<dt><var>$openId</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getVerifyCode" id="_getVerifyCode">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getVerifyCode">#</a>
			<code>getVerifyCode( <span>array <var>$post</var></span> )</code>

			<div class="description short">
				<p>获取验证码</p>
			</div>

			<div class="description detailed hidden">
				<p>获取验证码</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$post</var></dt>
						<dd>这里只有一个mobile参数</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="checkVerifyCode" id="_checkVerifyCode">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_checkVerifyCode">#</a>
			<code>checkVerifyCode( <span>array <var>$post</var></span> )</code>

			<div class="description short">
				<p>验证验证码</p>
			</div>

			<div class="description detailed hidden">
				<p>验证验证码</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$post</var></dt>
						<dd>需要带上mobiel和code参数</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="searchCorp" id="_searchCorp">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_searchCorp">#</a>
			<code>searchCorp( <span>string <var>$key</var></span>, <span>boolean <var>$unique</var> = <span class="php-keyword1">false</span></span>, <span>integer <var>$page</var> = <span class="php-num">0</span></span>, <span>integer <var>$size</var> = <span class="php-num">20</span> </span> )</code>

			<div class="description short">
				<p>搜索企业</p>
			</div>

			<div class="description detailed hidden">
				<p>搜索企业</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$key</var></dt>
						<dd>搜索关键字</dd>
						<dt><var>$unique</var></dt>
						<dd>是否完全匹配</dd>
						<dt><var>$page</var></dt>
						<dd>当前页数</dd>
						<dt><var>$size</var></dt>
						<dd>每页显示条数</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="returnSignParam" id="_returnSignParam">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_returnSignParam">#</a>
			<code>returnSignParam( <span>type <var>$arr</var> = <span class="php-keyword1">array</span>() </span> )</code>

			<div class="description short">
				<p>返回签名数组</p>
			</div>

			<div class="description detailed hidden">
				<p>返回签名数组</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$arr</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getSignature" id="_getSignature">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getSignature">#</a>
			<code>getSignature( <span>type <var>$param</var></span>, <span>type <var>$method</var> = <span class="php-quote">'md5'</span></span>, <span>type <var>$key</var> = self::IBOS_KEY </span> )</code>

			<div class="description short">
				<p>获取签名</p>
			</div>

			<div class="description detailed hidden">
				<p>获取签名</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$param</var></dt>
						<dd></dd>
						<dt><var>$method</var></dt>
						<dd></dd>
						<dt><var>$key</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="returnJsonDecode" id="_returnJsonDecode">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_returnJsonDecode">#</a>
			<code>returnJsonDecode( <span>string <var>$res</var></span> )</code>

			<div class="description short">
				<p>让json_decode的第二个默认参数是false改成true</p>
			</div>

			<div class="description detailed hidden">
				<p>让json_decode的第二个默认参数是false改成true</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$res</var></dt>
						<dd>返回的json格式字符串</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="paraFilter" id="_paraFilter">

			<td class="attributes"><code>
				 protected 
				去掉空值与签名参数后的新签名参数组
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_paraFilter">#</a>
			<code>paraFilter( <span> <var>$para</var></span> )</code>

			<div class="description short">
				<p>除去数组中的空值和签名参数</p>
			</div>

			<div class="description detailed hidden">
				<p>除去数组中的空值和签名参数</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$para</var></dt>
						<dd>签名参数组</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						去掉空值与签名参数后的新签名参数组
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="argSort" id="_argSort">

			<td class="attributes"><code>
				 protected 
				排序后的数组
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_argSort">#</a>
			<code>argSort( <span> <var>$param</var></span> )</code>

			<div class="description short">
				<p>对数组排序</p>
			</div>

			<div class="description detailed hidden">
				<p>对数组排序</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$param</var></dt>
						<dd>排序前的数组</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						排序后的数组
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="createLinkstring" id="_createLinkstring">

			<td class="attributes"><code>
				 protected 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_createLinkstring">#</a>
			<code>createLinkstring( <span> <var>$param</var></span> )</code>

			<div class="description short">
				<p>把数组所有元素，按照“参数=参数值”的模式用“&amp;”字符拼接成字符串</p>
			</div>

			<div class="description detailed hidden">
				<p>把数组所有元素，按照“参数=参数值”的模式用“&amp;”字符拼接成字符串</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$param</var></dt>
						<dd>需要拼接的数组</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string<br>拼接完成以后的字符串
					</div>




			</div>
			</div></td>
		</tr>
			</table>
		</div>

		<div class="panel panel-default">
	        <div class="panel-heading"><h3>Methods inherited from <a href="class-application.core.utils.Api.html#methods">application\core\utils\Api</a></h3></div>
			<p class="elementList">
				<code><a href="class-application.core.utils.Api.html#_buildUrl">buildUrl()</a></code>, 
				<code><a href="class-application.core.utils.Api.html#_fetchResult">fetchResult()</a></code>, 
				<code><a href="class-application.core.utils.Api.html#_getOpt">getOpt()</a></code>, 
				<code><a href="class-application.core.utils.Api.html#_setOpt">setOpt()</a></code>
			</p>
		</div>







		<div class="panel panel-default">
            <div class="panel-heading"><h2>Constants summary</h2></div>
			<table class="summary table table-bordered table-striped constants" id="constants">
			<tr data-order="CO_URL" id="CO_URL">

				<td class="attributes"><code>string</code></td>
				<td class="name">
					<code>
<b>CO_URL</b>					</code>

					<div class="description short">
						
					</div>

					<div class="description detailed hidden">
						

					</div>
				</td>
				<td class="value">
					<div>
						<a href="#CO_URL" class="anchor">#</a>
						<code><span class="php-quote">'http://www.ibos.cn/'</span></code>
					</div>
				</td>
			</tr>
			<tr data-order="API_CENTER" id="API_CENTER">

				<td class="attributes"><code>string</code></td>
				<td class="name">
					<code>
<b>API_CENTER</b>					</code>

					<div class="description short">
						
					</div>

					<div class="description detailed hidden">
						

					</div>
				</td>
				<td class="value">
					<div>
						<a href="#API_CENTER" class="anchor">#</a>
						<code><span class="php-quote">'http://api.ibos.cn/'</span></code>
					</div>
				</td>
			</tr>
			<tr data-order="API_USER_GET_TOKEN" id="API_USER_GET_TOKEN">

				<td class="attributes"><code>string</code></td>
				<td class="name">
					<code>
<b>API_USER_GET_TOKEN</b>					</code>

					<div class="description short">
						
					</div>

					<div class="description detailed hidden">
						

					</div>
				</td>
				<td class="value">
					<div>
						<a href="#API_USER_GET_TOKEN" class="anchor">#</a>
						<code><span class="php-quote">'http://api.ibos.cn/v1/users/login'</span></code>
					</div>
				</td>
			</tr>
			<tr data-order="API_USER_GET_INFO" id="API_USER_GET_INFO">

				<td class="attributes"><code>string</code></td>
				<td class="name">
					<code>
<b>API_USER_GET_INFO</b>					</code>

					<div class="description short">
						
					</div>

					<div class="description detailed hidden">
						

					</div>
				</td>
				<td class="value">
					<div>
						<a href="#API_USER_GET_INFO" class="anchor">#</a>
						<code><span class="php-quote">'http://api.ibos.cn/v1/users/view'</span></code>
					</div>
				</td>
			</tr>
			<tr data-order="API_CORP_SEARCH" id="API_CORP_SEARCH">

				<td class="attributes"><code>string</code></td>
				<td class="name">
					<code>
<b>API_CORP_SEARCH</b>					</code>

					<div class="description short">
						
					</div>

					<div class="description detailed hidden">
						

					</div>
				</td>
				<td class="value">
					<div>
						<a href="#API_CORP_SEARCH" class="anchor">#</a>
						<code><span class="php-quote">'http://api.ibos.cn/v1/corp/search'</span></code>
					</div>
				</td>
			</tr>
			<tr data-order="API_CORP_GET_INFO" id="API_CORP_GET_INFO">

				<td class="attributes"><code>string</code></td>
				<td class="name">
					<code>
<b>API_CORP_GET_INFO</b>					</code>

					<div class="description short">
						
					</div>

					<div class="description detailed hidden">
						

					</div>
				</td>
				<td class="value">
					<div>
						<a href="#API_CORP_GET_INFO" class="anchor">#</a>
						<code><span class="php-quote">'http://api.ibos.cn/v1/corp/view'</span></code>
					</div>
				</td>
			</tr>
			<tr data-order="API_CORP_CREATE" id="API_CORP_CREATE">

				<td class="attributes"><code>string</code></td>
				<td class="name">
					<code>
<b>API_CORP_CREATE</b>					</code>

					<div class="description short">
						
					</div>

					<div class="description detailed hidden">
						

					</div>
				</td>
				<td class="value">
					<div>
						<a href="#API_CORP_CREATE" class="anchor">#</a>
						<code><span class="php-quote">'http://api.ibos.cn/v1/corp/create'</span></code>
					</div>
				</td>
			</tr>
			<tr data-order="API_CORP_UPDATE_INFO" id="API_CORP_UPDATE_INFO">

				<td class="attributes"><code>string</code></td>
				<td class="name">
					<code>
<b>API_CORP_UPDATE_INFO</b>					</code>

					<div class="description short">
						
					</div>

					<div class="description detailed hidden">
						

					</div>
				</td>
				<td class="value">
					<div>
						<a href="#API_CORP_UPDATE_INFO" class="anchor">#</a>
						<code><span class="php-quote">'http://api.ibos.cn/v1/corp/update'</span></code>
					</div>
				</td>
			</tr>
			<tr data-order="API_CORP_QUIT" id="API_CORP_QUIT">

				<td class="attributes"><code>string</code></td>
				<td class="name">
					<code>
<b>API_CORP_QUIT</b>					</code>

					<div class="description short">
						
					</div>

					<div class="description detailed hidden">
						

					</div>
				</td>
				<td class="value">
					<div>
						<a href="#API_CORP_QUIT" class="anchor">#</a>
						<code><span class="php-quote">'http://api.ibos.cn/v1/corp/quit'</span></code>
					</div>
				</td>
			</tr>
			<tr data-order="API_USER_REGISTER" id="API_USER_REGISTER">

				<td class="attributes"><code>string</code></td>
				<td class="name">
					<code>
<b>API_USER_REGISTER</b>					</code>

					<div class="description short">
						
					</div>

					<div class="description detailed hidden">
						

					</div>
				</td>
				<td class="value">
					<div>
						<a href="#API_USER_REGISTER" class="anchor">#</a>
						<code><span class="php-quote">'http://api.ibos.cn/v1/users/register'</span></code>
					</div>
				</td>
			</tr>
			<tr data-order="API_VERIFYCODE_GET" id="API_VERIFYCODE_GET">

				<td class="attributes"><code>string</code></td>
				<td class="name">
					<code>
<b>API_VERIFYCODE_GET</b>					</code>

					<div class="description short">
						
					</div>

					<div class="description detailed hidden">
						

					</div>
				</td>
				<td class="value">
					<div>
						<a href="#API_VERIFYCODE_GET" class="anchor">#</a>
						<code><span class="php-quote">'http://api.ibos.cn/v1/users/verify'</span></code>
					</div>
				</td>
			</tr>
			<tr data-order="API_VERIFYCODE_CHECK" id="API_VERIFYCODE_CHECK">

				<td class="attributes"><code>string</code></td>
				<td class="name">
					<code>
<b>API_VERIFYCODE_CHECK</b>					</code>

					<div class="description short">
						
					</div>

					<div class="description detailed hidden">
						

					</div>
				</td>
				<td class="value">
					<div>
						<a href="#API_VERIFYCODE_CHECK" class="anchor">#</a>
						<code><span class="php-quote">'http://api.ibos.cn/v1/users/verify'</span></code>
					</div>
				</td>
			</tr>
			<tr data-order="API_CHECK_MOBILE" id="API_CHECK_MOBILE">

				<td class="attributes"><code>string</code></td>
				<td class="name">
					<code>
<b>API_CHECK_MOBILE</b>					</code>

					<div class="description short">
						
					</div>

					<div class="description detailed hidden">
						

					</div>
				</td>
				<td class="value">
					<div>
						<a href="#API_CHECK_MOBILE" class="anchor">#</a>
						<code><span class="php-quote">'http://api.ibos.cn/v1/users/checkmobile'</span></code>
					</div>
				</td>
			</tr>
			<tr data-order="IBOS_KEY" id="IBOS_KEY">

				<td class="attributes"><code>string</code></td>
				<td class="name">
					<code>
<b>IBOS_KEY</b>					</code>

					<div class="description short">
						
					</div>

					<div class="description detailed hidden">
						

					</div>
				</td>
				<td class="value">
					<div>
						<a href="#IBOS_KEY" class="anchor">#</a>
						<code><span class="php-quote">'3569c4ee701cb512fef319fc16ec88af'</span></code>
					</div>
				</td>
			</tr>
			</table>
		</div>




		<div class="panel panel-default">
            <div class="panel-heading"><h2>Properties summary</h2></div>
		</div>

		<div class="panel panel-default">
            <div class="panel-heading"><h3>Properties inherited from <a href="class-application.core.utils.Api.html#properties">application\core\utils\Api</a></h3></div>
			<p class="elementList">
				<code><a href="class-application.core.utils.Api.html#$curlopt"><var>$curlopt</var></a></code>
			</p>
		</div>





</div>
	</div>

	<div id="footer">
		IBOS open source API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
